package com.wyt.design.designmodel.strategy;

/**
 * @author weiyatong
 * @version 1.0
 * @date 2021/6/27 下午7:09
 * @describe 具体的鸭子类
 */
public abstract class Duck {
    FlyBehavior flyBehavior;

    public Duck() {
    }

    public void prevoidFly() {
        flyBehavior.fly();

    }

    public void setFlyBehavior(FlyBehavior flyBehavior){
        this.flyBehavior = flyBehavior;

    }}
